import { createRouter, createWebHistory } from 'vue-router'
import  LoginView from '../views/LoginView.vue'
import IndexView from '../views/IndexView.vue'
import RegisterView from '../views/RegisterView.vue'
import AppointmentView from '../views/AppointmentView.vue'
import AppointmentcancelView from '../views/AppointmentcancelView.vue'
import HospitalView from '../views/HospitalView.vue'
import ForgotPasswordView from '../views/ForgotPasswordView.vue'
import AppointmentlistView from '../views/AppointmentlistView.vue'
import AppointmentsuccessView from '../views/AppointmentsuccessView.vue'
import AppointmentfalseView from '../views/AppointmentfalseView.vue'
import Aitalk from '../views/Aitalk.vue'
import ReportDetailView from '../views/ReportDetailView.vue'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: LoginView
    },
    {
      path: '/index',
      name: 'index',
      component: IndexView
    },
    {
      path: '/register',
      name: 'register',
      component: RegisterView
    },
    {
      path: '/appointment',
      name: 'appointment',
      component: AppointmentView
    },
    {
      path: '/appointmentcancel',
      name: 'appointmentcancel',
      component: AppointmentcancelView
    },
    {
      path: '/hospital',
      name: 'hospitalView',
      component: HospitalView
    },
    {
      path: '/appointmentlist',
      name: 'appointmentlist',
      component: AppointmentlistView
    },
    {
      path: '/appointmentsuccess',
      name: 'appointmentsuccess',
      component: AppointmentsuccessView
    },
    {
      path: '/appointmentfalse',
      name: 'appointmentfalse',
      component: AppointmentfalseView
    },
    
    {
      path: '/confirmorder',
      name: 'confirmorder',
      component: () => import('../views/ConfirmorderView.vue')
    },
    {
      path: '/personal',
      name: 'personal',
      component: () => import('../views/PersonalView.vue')
    },
    {
      path: '/report',
      name: 'report',
      component: () => import('../views/ReportView.vue')
    },
    {
      path: '/reportlist',
      name: 'reportlist',
      component: () => import('../views/ReportlistView.vue')
    },
    {
      path: '/selectdate',
      name: 'selectdate',
      component: () => import('../views/SelectdateView.vue')
    },
    {
      path: '/setmeal',
      name: 'setmeal',
      component: () => import('../views/SetmealView.vue')
    },
    {
      path: '/forgotPassword',
      name: 'forgotPassword',
      component: ForgotPasswordView
    },
    {
      path: '/aitalk',
      name: 'aitalk',
      component: Aitalk
    },
    {
      path: '/reportdetaillist',
      name: 'reportdetaillist',
      component: ReportDetailView
    },

  ]
})

export default router
